<template>
  <div class="menutop drag">
    <div class="userinfo df">
      <div class="div1"></div>
      <div class="div2">郄菁，欢迎你～</div>
    </div>
    <div class="cp nodrag close" @click="handleclose"></div>
    <div class="cp nodrag min" @click="minimizeWin"></div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    // 关闭窗口
    handleclose() {
      window.location.href = "../close.html";
    },
    // 窗口最小化
    minimizeWin() {
      window.electronAPI.operationWindow("mainWindow ", "min");
    },
  },
};
</script>
  
<style lang="less" scoped>
.menutop {
  position: relative;
  width: 1060px;
  height: 56px;
  background-color: #ffffff;
  .userinfo {
    .div1 {
      width: 40px;
      height: 40px;
      border-radius: 40px;
      background-color: #ececee;
      margin: 8px 24px 8px 34px;
    }
    .div2 {
      width: 140px;
      height: 20px;
      font-family: MicrosoftYaHei;
      font-size: 20px;
      color: #262626;
      line-height: 20px;
      text-align: left;
      font-style: normal;
      margin-top: 18px;
    }
  }
  .menutopright {
    position: absolute;
    right: 29px;
    height: 32px;
    top: 12px;
  }

  .min {
    position: absolute;
    right: 101px;
    top: 12px;
    width: 32px;
    height: 32px;
    background-image: url("@/assets/img/winmin.png");
    background-size: cover;
  }

  .close {
    position: absolute;
    right: 29px;
    top: 12px;
    width: 32px;
    height: 32px;
    background-image: url("@/assets/img/winclose.png");
    background-size: cover;
  }
}
</style>